package gms.service;

import java.util.List;

import gms.dao.em.EquipmentDaoImpl;
import gms.entities.em.Equipment;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class EquipmentManagementService {
	@Autowired
	private  EquipmentDaoImpl equipmentDaoImpl;
	
	
	public void addEquipment(Equipment ep){
		equipmentDaoImpl.addEquipment(ep);
	}
	
	public void deleteEquipment(Integer epId){
		equipmentDaoImpl.deleteEquipment(epId);
	}
	
	public void modifiEquipment(Equipment ep){
		equipmentDaoImpl.modifiEquipment(ep);
	}
	
	
	public Equipment getEquipment(Integer epId){
		return equipmentDaoImpl.getEquipment(epId);
	}
	
	public List<Equipment> getEquipment(Equipment ep) {
		return equipmentDaoImpl.getEquipment(ep);
	}
	
	public List<Equipment> getAllEquipment() {
		return equipmentDaoImpl.getAllEquipment();
	}

	public void returnEp(Integer e_id) {
		// TODO Auto-generated method stub
		equipmentDaoImpl.returnEp(e_id);
	}
	
	
	
}